#import <Cocoa/Cocoa.h>

@class BWDiamondCanvas;
@class BWQueenStitch;
@class BWQueenStitchSet;
@class BWFrenchKnotSet;

@interface BWQSDocument : NSDocument
{
    BWQueenStitchSet *stitches;
    BWQueenStitchSet *previewStitch;

    BWFrenchKnotSet *frenchKnots;

    int currentTool;

    IBOutlet BWDiamondCanvas *canvas;
    IBOutlet BWDiamondCanvas *previewCanvas;
    IBOutlet NSButton *directionButton;

    IBOutlet NSColorWell *colorWell1;
    IBOutlet NSColorWell *colorWell2;

    IBOutlet NSColorWell *backgroundColorWell;
    NSColor *backgroundColor;

    IBOutlet NSButton *partialStitch;

    IBOutlet NSSegmentedControl *toolbar;

    int lastX, lastY; // last selection
    BWQueenStitch *selectedStitch;
}

- (IBAction) swapColors: (id) sender;

- (IBAction) changeColor1: (id) sender;
- (IBAction) changeColor2: (id) sender;
- (IBAction) changeDirection: (id) sender;
- (IBAction) changePartialStitch: (id) sender;

- (IBAction) selectTool: (id) sender;

- (IBAction) moveStitches: (id) sender;

- (IBAction) changeBackgroundColor: (id) sender;

- (IBAction) zoom: (id) sender;

@end // BWQSDocument

